local tableutils = {}

function tableutils.shuffle(t)
  for i = #t, 2, -1 do
    local r = math.random(i)
    t[i], t[r] = t[r], t[i]
  end
end

function tableutils.size(t)
  local n = 0
  for k,v in pairs(t) do
    n = n + 1
  end
  return n
end

return tableutils
